import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useLayoutStore = defineStore('Layout', () => {
    const headerEnable = ref(true)

    const headerToggle = () => {
        headerEnable.value = !headerEnable.value
    }

    const headerSet = (value: boolean) => {
        headerEnable.value = value
    }

    return { headerEnable, headerToggle, headerSet }
})
